import request from '@/utils/request'

// 查询志愿专业信息列表
export function listVolunteerMajor(query) {
  return request({
    url: '/baoming/volunteerMajor/list',
    method: 'get',
    params: query
  })
}

// 查询志愿专业信息详细
export function getVolunteerMajor(id) {
  return request({
    url: '/baoming/volunteerMajor/' + id,
    method: 'get'
  })
}

// 新增志愿专业信息
export function addVolunteerMajor(data) {
  return request({
    url: '/baoming/volunteerMajor',
    method: 'post',
    data: data
  })
}

// 修改志愿专业信息
export function updateVolunteerMajor(data) {
  return request({
    url: '/baoming/volunteerMajor',
    method: 'put',
    data: data
  })
}

// 删除志愿专业信息
export function delVolunteerMajor(id) {
  return request({
    url: '/baoming/volunteerMajor/' + id,
    method: 'delete'
  })
}
